package com.ofps.flow.domain.Dto;

import lombok.Data;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

import java.util.Date;

@Data
public class FlowNodeInstDto {

    /**
     * 流程节点实例的唯一标识
     */
    private String id;
    /**
     * 流程节点实例的唯一标识名称
     */
    private String name;
    /**
     * 该流程节点实例对应的流程实例id
     */
    private String flowInstId;
    /**
     * 该流程节点实例在流程实例的次序
     */
    private Long orderId;
    /**
     * 该流程节点实例是否为最后一个节点
     */
    private Integer last;
    /**
     * 该节点实例关联的用户id
     */
    private Long relatedUserId;
    /**
     * 该节点实例关联的用户昵称
     */
    private String relatedUserNickName;
    /**
     * 该节点实例关联的用户名
     */
    private String relatedUserName;
    /**
     * 审核意见
     */
    private String idea;
    /**
     * 审核签名（图片，base64格式）
     */
    private String sign;
    /**
     * 审核状态，0未开始/1审核中/2通过/3回退，等待修改
     */
    private Long status;

    private Date time;

    private String ip;


    @Override
    public String toString() {
        return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
                .append("id", getId())
                .append("flowInstId", getFlowInstId())
                .append("orderId", getOrderId())
                .append("last", getLast())
                .append("relatedUserNickName", getRelatedUserNickName())
                .append("relatedUserName", getRelatedUserName())
                .append("relatedUserId", getRelatedUserId())
                .append("idea", getIdea())
                .append("sign", getSign())
                .append("status", getStatus())
                .toString();
    }
}
